# Contributor: Kay Thomas <kaythomas@pm.me>
# Maintainer: Kay Thomas <kaythomas@pm.me>
pkgname=cadence
pkgver=0.9.2
pkgrel=0
pkgdesc="Collection of tools useful for audio production"
url="https://kx.studio/Applications:Cadence"
# py3-qt5 not packaged on armhf
arch="all !armhf"
license="GPL-2.0-or-later"
depends="
	jack-dbus
	jack_capture
	a2jmidid
	py3-qt5
	py3-dbus
	"
makedepends="
	qt5-qtbase-dev
	"
source="https://github.com/falkTX/Cadence/archive/v$pkgver/cadence-$pkgver.tar.gz"
options="!check" # No testsuite
builddir="$srcdir/Cadence-$pkgver"

build() {
	make
}

package() {
	make install PREFIX=/usr DESTDIR="$pkgdir"

	# Taken from AUR:
	# Removing claudia, as its runtime dependency ladish (dead) depends on
	# flowcanvas (dead)
	rm -rfv "$pkgdir/usr/bin/claudia"* \
			"$pkgdir/usr/share/applications/claudia"* \
			"$pkgdir/usr/share/$pkgname/"{icons,src}/{,ui_}claudia* \
			"$pkgdir/usr/share/icons/hicolor/"{128x128,16x16,256x256,48x48,scalable}/apps/claudia*
}

sha512sums="
d8a1b52c361e3e18a193d1c283bb69abe18ce667b554fc53cb9b752d92747269145144ae512895ffbb5df76efe8671cfc0782f29e59d0d7cd3d97c97240bdecf  cadence-0.9.2.tar.gz
"
